package com.me.model;

import com.me.model.viewmodel.UserViewModel;

public class User {
    private String id;
	private String username;
    private String password;
	private boolean isAdmin;
    private String email;
    private String name;
    private String phone;
    private String address;
    private boolean isValidate;

	public User() {
	}

	public User(UserViewModel u) {
		this.id = u.getId();
		this.username = u.getUsername();
		this.password = u.getPassword();
		this.isAdmin = u.isAdmin();
		this.email = u.getEmail();
		this.name = u.getName();
		this.phone = u.getPhone();
		this.address = u.getAddress();
		this.isValidate = u.isValidate();
	}

	public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

	public boolean getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(boolean admin) {
		isAdmin = admin;
	}

	public void setIsValidate(boolean validate) {
		isValidate = validate;
	}

	public boolean getIsValidate() {
		return isValidate;
	}

	public boolean isValidate() {
		return isValidate;
	}
}
